<?php
require_once("include/auth.php");


$currentUser = current_user();
//if ($currentUser){
    $course_title = $_GET['course_title'];
    $course_term = $_GET['course_term'];
    $sections = getSection($course_title, $course_term);

    header('Cache-Control: no-cache, must-revalidate');
    header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    header('Content-type: application/json');

    echo json_encode($sections);
//}
